package com.gray.blog.dao.sys;

import com.gray.blog.dao.BaseDao;
import com.gray.blog.dto.UserRoleInfoDTO;
import com.gray.blog.entity.sys.SysUserEntity;
import org.apache.ibatis.annotations.Param;

public interface SysUserDao extends BaseDao<SysUserEntity> {

    String getPasswordByLoginName(String loginName);

    SysUserEntity getInfoByLoginName(String loginName);

    UserRoleInfoDTO getUserMaximumAuthority(String loginName);

    int updateUserInfo(@Param("obj") SysUserEntity sysUserEntity);

    int updateUserLoginInfo(@Param("loginIp") String loginIp, @Param("loginName") String loginName);
}
